package com.jketing.entity;

import java.io.Serializable;

import javax.persistence.MappedSuperclass;

/**
 * SortEntity 排序实体基类
 * 
 * 功能：实现人工干预的人为排序
 * 比如菜单、按纽在显示时想人为调整显示顺序
 * 
 * @author  李荣华
 * @version v1.0
 * @date    2017-11-07
 * @since   jpa 2.1
 */
@MappedSuperclass
public abstract class SortEntity<T extends Serializable>  extends BaseEntity implements Comparable<T>{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * orderNumber:排序号
	 */
	protected Integer orderNumber; 
	
	/**
	 * 排序号
	 */
	public Integer getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(Integer orderNumber) {
		this.orderNumber = orderNumber;
	}
}
